 package com.cxl.pattern.factory.simple_factory;
 
 public class Factory
 {
   public static Api createApi(int condition)
   {
     Api api = null;
     if (condition == 1) {
       api = new ImplA();
     }
     if (condition == 2) {
       api = new ImplB();
     }
     return api;
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.pattern.factory.simple_factory.Factory
 * JD-Core Version:    0.6.1
 */